package com.macrohard.mapper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName activity_item
 */
@TableName(value ="activity_item")
public class ActivityItem implements Serializable {
    /**
     * 
     */
    @TableId(value = "a_id", type = IdType.AUTO)
    private Integer aId;

    /**
     * 
     */
    @TableField(value = "aaid")
    private Integer aaid;

    /**
     * 
     */
    @TableField(value = "aname")
    private String aname;

    /**
     * 
     */
    @TableField(value = "arequire")
    private String arequire;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getaId() {
        return aId;
    }

    /**
     * 
     */
    public void setaId(Integer aId) {
        this.aId = aId;
    }

    /**
     * 
     */
    public Integer getAaid() {
        return aaid;
    }

    /**
     * 
     */
    public void setAaid(Integer aaid) {
        this.aaid = aaid;
    }

    /**
     * 
     */
    public String getAname() {
        return aname;
    }

    /**
     * 
     */
    public void setAname(String aname) {
        this.aname = aname;
    }

    /**
     * 
     */
    public String getArequire() {
        return arequire;
    }

    /**
     * 
     */
    public void setArequire(String arequire) {
        this.arequire = arequire;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityItem other = (ActivityItem) that;
        return (this.getaId() == null ? other.getaId() == null : this.getaId().equals(other.getaId()))
            && (this.getAaid() == null ? other.getAaid() == null : this.getAaid().equals(other.getAaid()))
            && (this.getAname() == null ? other.getAname() == null : this.getAname().equals(other.getAname()))
            && (this.getArequire() == null ? other.getArequire() == null : this.getArequire().equals(other.getArequire()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getaId() == null) ? 0 : getaId().hashCode());
        result = prime * result + ((getAaid() == null) ? 0 : getAaid().hashCode());
        result = prime * result + ((getAname() == null) ? 0 : getAname().hashCode());
        result = prime * result + ((getArequire() == null) ? 0 : getArequire().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", aId=").append(aId);
        sb.append(", aaid=").append(aaid);
        sb.append(", aname=").append(aname);
        sb.append(", arequire=").append(arequire);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}